<style scoped>
  .safe{
    width:100%;
    height:100%;
    background: #edf1f5;
  }

  .head{
    height:60px;
    padding-top: 10px;
    display: flex;
    justify-content: center;
    align-items:center;
    border-bottom: 1px solid #E9E9E9;
    box-sizing: border-box;
    background: #ffffff;
    position: relative;
  }
  .head-left{
    position: absolute;
    width:40px;
    height:100%;
    left:0;
    top:0;
    color: #7f7a8e;
    text-align: center;
  }
  .head-left h1{
    margin-top: 22px;
  }
  .head-middle{
    font-size: 16px;
  }
  .head-right{
    position: absolute;
    right:10px;
    top:15px;
  }
  .list{
    margin-top: 10px;
  }
  .list ul li{
    padding: 10px 0;
    display: flex;
    border-bottom: 1px solid #E9E9E9;
    color: #555555;
    justify-content: center;
    align-items: center;
    background: #ffffff;
  }
  .list ul li a{
    width:100%;
    height:100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .list ul li h2{
    margin-right: 8px;
    color: #555555;
  }
  .list ul li i{
    flex: 1;
  }
  .list ul li i.last{
    margin-right: 10px;
  }
  .list ul li h3{
    margin-left: 15px;
    flex: 8;
  }
  .list ul li h2{
    opacity: 0.5;
  }
  .marginTop{
    margin-top: 10px;
  }
  .exit{
    margin-top: 100px;
    display: flex;
    justify-content: center;
  }
</style>

<template>
  <div class="safe">
    <div class="header">
      <div class="head-top"></div>
      <div class="head">
        <div class="head-left" @click="goBack"><h1 class="iconfont icon-xiangzuo1"></h1></div>
        <div class="head-middle"><h3>认证邮箱</h3></div>
      </div>
    </div>
    <div class="content">
      <div class="list">
        <ul>
          <li style="padding-right: 29px"><h3>手机号</h3><p>{{phone}}</p></li>
          <li>
            <router-link to="/email">
              <h3>邮箱</h3><p>{{email}}</p><h2 class="iconfont icon-xiangyou1"></h2>
            </router-link>
          </li>
          <!--<li>-->
            <!--<router-link to="/name">-->
              <!--<h3>修改昵称</h3><h2 class="iconfont icon-xiangyou1"></h2>-->
            <!--</router-link>-->
          <!--</li>-->
          <li>
            <router-link to="/modifyPwd">
              <h3>修改登录密码</h3><h2 class="iconfont icon-xiangyou1"></h2>
            </router-link>
          </li>
          <!--<li>-->
            <!--<router-link to="/reset">-->
              <!--<p>忘记登录密码</p><h2 class="iconfont icon-xiangyou1"></h2>-->
            <!--</router-link>-->
          <!--</li>-->
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
  import axios from 'axios'
  import host from '../config.js'
  import { Toast } from 'mint-ui'

  export default {
    data () {
      return {
        phone: null,
        email: '未认证',
        message: null
      }
    },
    mounted () {
      var localStorage = window.localStorage
      this.message = localStorage.getItem('message')
      if (this.message) {
        this.email =  JSON.parse(this.message).email
        this.phone = JSON.parse(this.message).phone
      }
    },
    methods: {
      goBack () {
        this.$router.push('/my')
      }
    }
  }
</script>
